*Path directory

global mainDir ""
global dataDir "$mainDir/data"
global tempDir "$mainDir/temp"
global codeDir "$mainDir/code"

*Additional settings

set scheme plotplainblind
clear matrix
clear all


*Run programs in order of appearance in the paper

*Main figures and tables
*Figure 1
do "$codeDir/Fig1_map_mills_location.do"
*Table 1
do "$codeDir/Tab1_main_fires.do"
*Figure 2
do "$codeDir/Fig2_eventstudy_fires.do"
*Table 2
do "$codeDir/Tab2_robustness_checks.do"
*Figure 3
do "$codeDir/Fig3_eventstudy_inputs.do"
*Table 3
do "$codeDir/Tab3_main_inputs.do"
*Figure 4
do "$codeDir/Fig4_eventstudy_pollution.do"
*Table 4
do "$codeDir/Tab4_main_pollution.do"
*Table 5 and Figure 5
do "$codeDir/Tab5_Fig5_main_distributional.do"
*Figure 6
do "$codeDir/Fig6_main_health.do"

*Appendix figures and tables
*Figure A1 and A4
do "$codeDir/FigA1_FigA4_timeharvest_ownership.do"
*Figure A3
do "$codeDir/FigA3_distareas.do"
*Figure A5
do "$codeDir/FigA5_eventstudy_fires_modis.do"
*Figure A6
do "$codeDir/FigA6_eventstudy_outputs.do"
*Figure A7
do "$codeDir/FigA7_trends_outcomes.do"
*Figure A8
do "$codeDir/FigA8_hist_poverty.do"
*Table A1
do "$codeDir/TabA1_descriptive_stats.do"
*Table A2
do "$codeDir/TabA2_falsification_test.do"
*Table A3
do "$codeDir/TabA3_wages.do"
*Table A4
do "$codeDir/TabA4_main_outputs.do"
*Table A5
do "$codeDir/TabA5_main_efficiency.do"
*Table A6
do "$codeDir/TabA6_poverty_heterogeneity.do"
*Table A7 and A8
do "$codeDir/TabA7_A8_health_outcomes.do"

